<?php 
require_once 'class/config_database.php';
require_once 'class/kamar.php';
require_once 'class/pengguna.php';
$kamar_dao = new Kamar_Dao($host,$user,$pass,$dbnm);
$kamar	   = new Kamar();
$ambil = $_REQUEST['rooms_no'];
$kamar 	= $kamar_dao->get($ambil);
?>

<form method="POST" enctype="multipart/form-data">
<table class="table table-striped" width="100%" border="0">
<tr><td colspan="2"><center><font size="+2">Form Memesan Kamar :</font></center></td></tr>
<tr><td><center><font size="+2"><?php echo $kamar->rooms_name; ?></font></center>
<img class="well" src="<?php echo "upload/".$kamar->room_figure.""; ?>" width=200 >
<center><?php echo $kamar->address; ?></center></td>
<td>
<table width="100%">
<tr><td colspan="3">Order Date : <font size="+2"><?php echo date("j")."/".date("n")."/20".date("y") ?></font></td>
<input type="hidden" name="id_kamar" value="<?php echo $kamar->rooms_no; ?>">
<input type="hidden" name="date" value="<?php echo "20".date("y")."-".date("n")."-".date("j") ?>">
<tr><td colspan="3">From member : </td></tr>
<tr><td>Status </td><td>:</td><td>
<select name="status">
	<option value="Pesan">Pesan</option>
	<option value="Konfirmasi">Konfirmasi</option>
	<option value="Tolak">Tolak</option>
	<option value="Batal">Batal</option>
	</select></td>
<tr><td>Note </td><td>:</td><td><textarea class="btn-block" name="note" rows="3"></textarea></td>
</tr>
</table>
<td>
<tr><td>
<input type="hidden" name="rooms_no" value="<?php echo $kamar->rooms_no; ?>">
</td><td><center><input class="btn btn-primary" name="tombol_pesankamar" type="submit" value="Pesan">&nbsp <input class="btn btn-primary" type="button" value="Batal" onclick="self.history.back()"></center></td></tr>
</table>
</form>